package com.wxf.book1_38;

import java.util.Scanner;

public class Book48 {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		score();
	}

	static int score;
	static int grade = 5;

	public static void score() {
		System.out.println("请输入数学摸底考试成绩：");
		score = sc.nextInt();
		if (score >= 80) {
			System.out.println("请输入所属年级(只能输入5或6)：");
			grade = sc.nextInt();
			if (grade == 5) {
				System.out.println("你将参加五年级组数学竞赛！");
			} else {
				System.out.println("你将参加六年级组数学竞赛！");
			}
		} else {
			System.out.println("抱歉，不能参加市数学竞赛！");
		}
	}

}
